﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace TA.Turbo
{
	public static class _TextWriter_Extensions
	{
		/// <summary>
		/// Formats, prepares and writes the specified script to this text writer.
		/// </summary>
		/// <param name="This"></param>
		/// <param name="format"></param>
		/// <param name="args"></param>
		public static void WriteScript(this TextWriter This, string format, params object[] args)
		{
			This.Write(TPage.PrepareScript(string.Format(format, args)));
		}
	}
}
